package user

import (
	"gorm.io/gorm"
)

type Repository interface {
	DB() *gorm.DB
	Create(user *User) error
	Save(user *User) error
	Delete(userID int64) error
	Login(user *User) error
}

type Repo struct {
	userRepo Repository
}

func (r *Repo) GetUserRepo() Repository {
	return r.userRepo
}
